package com.atguigu.homework.exer2;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/14 17:03
 * @注释
 */
public class Swan extends Bird implements Flyable,Swimming{

    @Override
    public void eat() {
        System.out.println("天鹅吃水生植物的根茎和种子、水生昆虫、螺类和小鱼");
    }

    @Override
    public void fly() {
        System.out.println("天鹅展翅高飞,天南海北任我游");
    }

    @Override
    public void swim() {
        System.out.println("天鹅把羽毛洗的锃亮,顺便捉条鱼");
    }
}
